import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { HomeComponent } from './home/home.component';
import { Demo01Component } from './demo01/demo01.component';
import { Demo02Component } from './demo02/demo02.component';
import { Demo4Component } from './demo-4/demo-4.component';
import { Demo5Component } from './demo-5/demo-5.component';
import { DemoBese64Component } from './demo-bese64/demo-bese64.component';
import { GetGlobalComponent } from './get-global/get-global.component';
import { DemoLocalStorageComponent } from './demo-local-storage/demo-local-storage.component';
import { SliderLabelComponent } from './slider-label/slider-label.component';
import { DemoWsComponent } from './demo-ws/demo-ws.component';
import { DemoMasterComponent } from './demo-master/demo-master.component';
import { TestDataComponent } from './test-data/test-data.component';
import { CanvasPdfComponent } from './canvas-pdf/canvas-pdf.component';
import { ScreenRecordingComponent } from './screen-recording/screen-recording.component';

const routes: Routes = [
  { path: '', redirectTo: 'home', pathMatch: 'full' },
  { path: "home", component: HomeComponent },
  { path: "demo01", component: Demo01Component },
  { path: "demo02", component: Demo02Component },
  { path: "demo-4", component: Demo4Component },
  { path: "demo-5", component: Demo5Component },
  { path: "demo-bese64", component: DemoBese64Component },
  { path: "get-global", component: GetGlobalComponent },
  { path: "demo-local-storage", component: DemoLocalStorageComponent },
  { path: "slider-label", component: SliderLabelComponent },
  { path: "demo-ws", component: DemoWsComponent },
  { path: "demo-master", component: DemoMasterComponent },
  { path: "test-data", component: TestDataComponent },
  { path: "canvas-pdf", component: CanvasPdfComponent },
  { path: "screen-recording", component: ScreenRecordingComponent },

];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
